package cn.fintecher.gis.entity;

import cn.fintecher.gis.enums.MessageDataType;
import cn.fintecher.gis.enums.MessageMode;
import cn.fintecher.gis.enums.MessageReadStatus;
import cn.fintecher.gis.enums.MessageType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author:peishouwen
 * @Desc:
 * @Date:Create in 14:45 2018/9/4
 */
@Entity
@Data
@Table(name = "web_socket_message")
public class WebSocketMessage extends BaseEntity {


    @ApiModelProperty("消息接收人")
    private String userName;

    @ApiModelProperty(notes = "消息数据类型")
    @Enumerated(EnumType.STRING)
    private MessageDataType messageDataType = MessageDataType.Reminder;

    @ApiModelProperty(notes = "消息类型")
    @Enumerated(EnumType.STRING)
    private MessageType messageType;

    @ApiModelProperty(notes = "消息标题")
    private String title;

    @ApiModelProperty(notes = "消息日期")
    private Date msgDate;

    @ApiModelProperty(notes = "消息内容")
    private String content;

    @ApiModelProperty(notes = "消息标识")
    @Enumerated(EnumType.STRING)
    private MessageReadStatus readStatus = MessageReadStatus.UNREAD;

    @ApiModelProperty(notes = "消息模式")
    @Enumerated(EnumType.STRING)
    private MessageMode messageMode = MessageMode.COMMON;
}
